<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title>Oooops</title>
        <link rel="stylesheet" href="/draw-your-destiny/css/application.css" />
        <link rel="stylesheet" href="/draw-your-destiny/css/jqueryui/jquery-ui.css" />
        <link rel="stylesheet" href="/draw-your-destiny/css/lightbox2/jquery.lightbox-0.5.css" />
        <link rel="shortcut icon" href="/draw-your-destiny/images/imageTitle.png" type="image/x-icon" />
		<link rel='stylesheet' href='/draw-your-destiny/plugins/richui-0.7/css//rating.css'></link>
        <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
        <script type="text/javascript" src="/draw-your-destiny/js/jquery/jquery-1.3.2.js"></script>
    </head>
    <body>
    	<div id="wrapper">    	
	        <div id='header' class=''>
	        	<div class="left">
	        	<a href="/draw-your-destiny/">
					<img src="/draw-your-destiny/images/drawYourDestiny.png" alt="Draw Your Destiny"/>
	        	</a>
	        	</div>
	        </div>
		    <div id="page" class="rounded-corners">
		    	<div id="top" class="menuNav rounded-corners"></div>
		    	<div id="body" class="rounded-corners">	
					<div class="navButtonsTop rounded-corners">
						<h1 class="title">Error</h1>
					</div>
					<div class="element">
						<h1>Ha habido un error inesperado.</h1>
						<h2>
							Lo sentimos, ha sucedido algo que no se esperaba....
						</h2>
					    <h3 id="detalles">Detalles ...</h3>
					    <div id="error">
						  	<div class="message">
								<strong>Error ${request.'javax.servlet.error.status_code'}:</strong> ${request.'javax.servlet.error.message'.encodeAsHTML()}<br/>
								<strong>Servlet:</strong> ${request.'javax.servlet.error.servlet_name'}<br/>
								<strong>URI:</strong> ${request.'javax.servlet.error.request_uri'}<br/>
								<g:if test="${exception}">
							  		<strong>Exception Message:</strong> ${exception.message?.encodeAsHTML()} <br />
							  		<strong>Caused by:</strong> ${exception.cause?.message?.encodeAsHTML()} <br />
							  		<strong>Class:</strong> ${exception.className} <br />
							  		<strong>At Line:</strong> [${exception.lineNumber}] <br />
							  		<strong>Code Snippet:</strong><br />
							  		<div class="snippet">
							  			<g:each var="cs" in="${exception.codeSnippet}">
							  				${cs?.encodeAsHTML()}<br />
							  			</g:each>
							  		</div>
								</g:if>
						  	</div>
							<g:if test="${exception}">
							    <h2>Stack Trace</h2>
							    <div class="stack">
							      <pre><g:each in="${exception.stackTraceLines}">${it.encodeAsHTML()}<br/></g:each></pre>
							    </div>
							</g:if>
						</div>
					</div>
					<div class="navButtons rounded-corners" ></div>
			        <div id="bottom" class="menuNav rounded-corners"></div>
		        </div>
			</div>
	    </div>
	    <script type="text/javascript">
	    	$("document").ready(function(){
				$("#error").hide();
				$("#detalles").click(function(){
					$("#error").slideDown();	
				});

				
		    });
	    
	    </script>
    </body>
</html>